package com.icart.vo;

/**
 * 接口凭证
 * @author bobo
 */
public class AccessToken implements java.io.Serializable {

	private static final long serialVersionUID = -7317792089953707212L;
	
	/**
	 * 1、接口调用凭证
	 * 2、网页授权接口调用凭证
	 */
	private String accessToken;
	
	/**
	 * 凭证有效时间  单位：秒
	 */
	private int expiresIn;
	
	/**
	 * oauth2.0 通过code换取网页授权access_token
	 * 用户刷新access_token
	 */
	private String refreshToken;
	/**
	 * oauth2.0 通过code换取网页授权access_token
	 * 用户唯一标识
	 */
	private String openid;
	/**
	 * oauth2.0 通过code换取网页授权access_token
	 * 用户授权的作用域，使用（，）分隔
	 */
	private String scope;

	/**
	 * 错误码
	 */
	private String errcode;
	
	/**
	 * 错误信息
	 */
	private String errmsg;

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public int getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(int expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public String getErrcode() {
		return errcode;
	}

	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}
	
}
